package com.xyz.dao.mapper;

import com.free.ext.mybatis.mapper.CustomMapper;
import com.xyz.domain.model.LotteryPeriodSearchModel;
import com.xyz.domain.model.LotteryPeriodSearchResModel;
import com.xyz.domain.table.SLotteryPeriod;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SLotteryPeriodMapper extends CustomMapper<SLotteryPeriod> {

    Integer getLotteryMaxPeriod(SLotteryPeriod period);

    List<LotteryPeriodSearchResModel> getLotteryPeriodList(LotteryPeriodSearchModel serCond);

    List<LotteryPeriodSearchResModel> getTodayLotteryInfo(LotteryPeriodSearchModel serCond);

    List<SLotteryPeriod> get400PeriodInfo(@Param(value = "lotteryCode") String lotteryCode);

    SLotteryPeriod getCurrentLotteryPeriodInfo(@Param(value = "lotteryCode") String lotteryCode);
}